/*
* @Author: Star
* @Date:   2018-09-27 13:37:42
* @Last Modified by:   Star
* @Last Modified time: 2018-09-27 14:04:49
*/

import jsonp from '@/common/js/jsonp'
import { commonParams, options } from './config'

//封装获取recommend[轮播图数据]的方法
export function getRecommend() {
	const url = 'https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg'

	const data = Object.assign({}, commonParams, {
		platform: 'h5',
		uin: 0,
		needNewCode: 1
	})

	return jsonp(url, data, options)
}